package cn.Mmovie.bean;

import java.sql.Date;
import java.sql.Time;

public class Schedule {
    private int id;
    private Movie movie;
    private Auditorium auditorium;
    private Time startTime;
    private Date startDate;

    public Schedule() {
    }

    public Schedule(Movie movie, Auditorium auditorium, Time startTime, java.sql.Date startDate) {
        this.movie = movie;
        this.auditorium = auditorium;
        this.startTime = startTime;
        this.startDate=startDate;
    }
    public Schedule(int id,Movie movie, Auditorium auditorium, Time startTime, java.sql.Date startDate) {
        this.movie = movie;
        this.id=id;
        this.auditorium = auditorium;
        this.startTime = startTime;
        this.startDate=startDate;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Schedule(int id, Movie movie, Auditorium auditorium, Time startTime) {
        this.id = id;
        this.movie = movie;
        this.auditorium = auditorium;
        this.startTime = startTime;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return movie
     */
    public Movie getMovie() {
        return movie;
    }

    /**
     * 设置
     * @param movie
     */
    public void setMovie(Movie movie) {
        this.movie = movie;
    }

    /**
     * 获取
     * @return auditorium
     */
    public Auditorium getAuditorium() {
        return auditorium;
    }

    /**
     * 设置
     * @param auditorium
     */
    public void setAuditorium(Auditorium auditorium) {
        this.auditorium = auditorium;
    }

    /**
     * 获取
     * @return startTime
     */
    public Time getStartTime() {
        return startTime;
    }

    /**
     * 设置
     * @param startTime
     */
    public void setStartTime(Time startTime) {
        this.startTime = startTime;
    }

    public String toString() {
        return "Schedule{id = " + id + ", movie = " + movie + ", auditorium = " + auditorium + ", startTime = " + startTime + "}";
    }
}
